package com.haizhi.crm.persist.builder;

import lombok.Data;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * Created by chengmo on 2018/6/19.
 */
@Data
public class SourceBuilder {

    private String objectKey;
    private Map<String, Object> source = new LinkedHashMap<>();

    public SourceBuilder(String objectKey) {
        this.objectKey = objectKey;
    }

    public SourceBuilder updateNormalField(String field, Object value) {
        source.put(field, value);
        return this;
    }
}
